home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.plaf.basic;
-
- import com.sun.java.swing.JMenu;
- import com.sun.java.swing.event.ChangeEvent;
-
- class BasicMenuBarUI$1 extends BasicMenuBarUI.BasicMenuBarChangeListener {
- // $FF: synthetic field
- BasicMenuBarUI this$0;
-
- public void stateChanged(ChangeEvent e) {
- int i = 0;
-
- for(int c = this.this$0.menuBar.getMenuCount(); i < c; ++i) {
- JMenu menu = this.this$0.menuBar.getMenu(i);
- if (menu != null && menu.isSelected()) {
- this.this$0.menuBar.getSelectionModel().setSelectedIndex(i);
- break;
- }
- }
-
- }
-
- // $FF: synthetic method
- BasicMenuBarUI$1(BasicMenuBarUI this$0) {
- this.this$0 = this$0;
- }
- }
-